package com.topscore.uke.mvp.contractors;

import com.kingja.loadsir.callback.Callback;
import com.kingja.loadsir.core.LoadService;
import com.topscore.uke.entities.HomeBannerInfo;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.BaseResponse;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClient;

import java.util.List;

/**
 * Created by 71468 on 2018/3/21.
 */

public interface GetHomePageBannerContractor {
    interface Model {
        ApiService mService = NetClient.getInstance().net().create(ApiService.class);

        void getBanner(CallBack callBack);
    }

    interface View extends BaseView {
        LoadService getLoadService();
        Callback getErrorCallBack();
        void onGetBannerInfoSuccess(List<HomeBannerInfo> list);
    }

    interface Presenter {
        void getBannerInfo(View view);
    }

    interface CallBack extends BaseHttpListener {
        void onGetBannerSuccess(BaseResponse<List<HomeBannerInfo>> response);
    }
}
